package com.provider.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.provider.dao.TProductStoryDao;
import com.provider.entity.TProductEpic;
import com.provider.entity.TProductStory;
import com.provider.service.TProductStoryService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 产品Story任务(TProductStory)表服务实现类
 *
 * @author makejava
 * @since 2024-04-29 11:22:29
 */
@Service("tProductStoryService")
@Transactional(rollbackFor = Exception.class)
public class TProductStoryServiceImpl extends ServiceImpl<TProductStoryDao, TProductStory> implements TProductStoryService {

    @Override
    public List<TProductStory> queryProductStory(String systemId) {
        LambdaQueryWrapper<TProductStory> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(TProductStory::getSystemId,systemId).eq(TProductStory::getIsValid,"Y");
        return this.list(lambdaQueryWrapper);
    }
}

